<%@ page isErrorPage = "true"%>
<%@ page import = "java.io.*" %>
<html>
    <head>
        <title> Error: <%= exception.getClass().getSimpleName()%> </title>
    </head>
    <style>
        p { margin-left: 35px; margin-top: 0px; }
    </style>
    <body>
        <h2>Some error is found</h2>
        <h3>Check for error below:</h3>
        <b>Exception:</b><br> 
        <font color="red"><%= exception.toString()%> : <%=exception.getMessage()%>
        <p>
        <% for (StackTraceElement element : exception.getStackTrace()) {%>
        <br><%=element.toString()%>
        <% }%>
        </p>
        </font>
    </body>
</html>